package com.frogs.ucenter.service;

import java.util.Map;

import com.alibaba.fastjson.JSONObject;
import com.frogs.framework.util.PageList;

public interface IntegralService {

	/**
	 * 获取积分优惠券列表
	 * 
	 * @param type
	 * @param isVip
	 * @param pageNo
	 * @param pageSize
	 * @return
	 * @throws Exception
	 */
	public PageList<Map<String, Object>> getIntegralCouponList(Integer type,
			Integer columnId, Integer isVip, Integer pageNo, Integer pageSize)
			throws Exception;
	
	/**
	 * 积分兑换优惠券
	 * 
	 * @param userId
	 * @param id
	 * @param verify
	 * @return
	 * @throws Exception
	 */
	public JSONObject userIntegralCouponExchange(Integer userId, Integer id)
			throws Exception;
	/**
	 * 兑换激活码
	 * @param userId 登录用户id
	 * @param id 兑换对照表id
	 * @param expandCode 渠道
	 * @param applicablePlatformId 平台
	 * @return
	 * @throws Exception
	 */
	JSONObject cdkeyExchange(Integer userId, Integer id, String expandCode, Integer applicablePlatformId) throws Exception;
	
	

}
